<script setup>
import { useCounterStore } from '../stores/counter'
const counter = useCounterStore()
</script>

<template>
  <div>
    <h2>首页</h2>
    <p>计数：{{ counter.count }}</p>
    <button @click="counter.increment">增加</button>
  </div>
</template>
